package com.itcast.API.Demo01;

import java.util.Random;

/*
要写注释哦!!!
*/
public class Runtime {
    public static void main(String[] args) {
        java.lang.Runtime runtime = java.lang.Runtime.getRuntime();
        System.out.println(runtime.availableProcessors());
        System.out.println(runtime.totalMemory()/1024.0/1024.0 + "MB");
        System.out.println(runtime.freeMemory()/1024.0/1024.0 + "MB");
    }
}
